Cocktail Help Reference
DialogUICommand<T> Constructor(String,T,Boolean,Boolean)
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > DialogUICommand<T> Class > DialogUICommand<T> Constructor : DialogUICommand<T> Constructor(String,T,Boolean,Boolean)



label
The label of the command.
dialogResult
The associated dialog result value.
isDefaultCommand
True if command is the default command.
isCancelCommand
True if the command is used to cancel.

Glossary Item Box

Creates a new instance of the DialogUICommand<T> class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal label As String, _
   ByVal dialogResult As T, _
   Optional ByVal isDefaultCommand As Boolean, _
   Optional ByVal isCancelCommand As Boolean _
)
Visual Basic (Usage)Copy Code
Dim label As String
Dim dialogResult As T
Dim isDefaultCommand As Boolean
Dim isCancelCommand As Boolean
 
Dim instance As New DialogUICommand(Of T)(label, dialogResult, isDefaultCommand, isCancelCommand)
C# 
public DialogUICommand<T>( 
   string label,
   T dialogResult,
   bool isDefaultCommand,
   bool isCancelCommand
)
C++/CLI 
public:
DialogUICommand<T>( 
   String^ label,
   T^ dialogResult,
   bool isDefaultCommand,
   bool isCancelCommand
)

Parameters

label
The label of the command.
dialogResult
The associated dialog result value.
isDefaultCommand
True if command is the default command.
isCancelCommand
True if the command is used to cancel.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.